import request from '@/utils/request'

let baseUrl = 'http://49.234.79.188:9090';
// let baseUrl = 'http://localhost:9090';

export const login = params=> {
    console.log(params,'show me loginparams')
    return request({
        url: `${baseUrl}/admin/login`,
        method: 'post',
        data: params
    })
}

export const getInfo =params=> {
    return request({
        url: `${baseUrl}/admin/getMessage`,
        method: 'get',
        params: params.token
    })
}

export const logout =params=> {
    return request({
        url: `${baseUrl}/logout`,
        method: 'get',
        params:params
    })
}
